]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Magnifier: clip the UI group clone to the allocation
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 13 Feb 2014 16:25:42 +0000 (17:25 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 13 Feb 2014 18:43:44 +0000 (19:43 +0100)
Without clipping, we show parts of the message tray and workspace
thumbnails that are normally clipped by the screen.

https://bugzilla.gnome.org/show_bug.cgi?id=724305

js/ui/magnifier.js

index 5cc001ea9e75fee7f238e59c48b5bb0bc6970df2..6493aff701c2903fa2836beb439b709a01297ce8 100644 (file)
@@ -1208,7 +1208,8 @@ const ZoomRegion = new Lang.Class({
 
         // Clone the group that contains all of UI on the screen.  This is the
         // chrome, the windows, etc.
-        this._uiGroupClone = new Clutter.Clone({ source: Main.uiGroup });
+        this._uiGroupClone = new Clutter.Clone({ source: Main.uiGroup,
+                                                 clip_to_allocation: true });
         mainGroup.add_actor(this._uiGroupClone);
 
         // Add either the given mouseSourceActor to the ZoomRegion, or a clone of